package no.ntnu.fp.gui.listeners;

import no.ntnu.fp.gui.events.RemoveEmployeeCalendarEvent;
import no.ntnu.fp.model.CalendarModel;

public class RemoveEmployeeCalendarListener implements GuiListener<RemoveEmployeeCalendarEvent>{
	private final CalendarModel calendarModel;
	public RemoveEmployeeCalendarListener(CalendarModel model){
		this.calendarModel = model;
	}

	@Override
	public void handleEvent(RemoveEmployeeCalendarEvent evt) {
		calendarModel.removeEmployeeCalendar(evt.getEmployee());
	}

	@Override
	public boolean isLongRunningListener() {
		// TODO Auto-generated method stub
		return false;
	}

}
